-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Instrumentation.AWS] Move adding request and response info to AWSTracingPipelineHandler #2137
[Instrumentation.AWS] Move adding request and response info to AWSTracingPipelineHandler #2137
Conversation
…cingPipelineHandler
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2137 +/- ##
===========================================
+ Coverage 73.91% 86.09% +12.17%
===========================================
Files 267 34 -233
Lines 9615 906 -8709
===========================================
- Hits 7107 780 -6327
+ Misses 2508 126 -2382
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
@@ -18,6 +18,7 @@ internal static class AWSSemanticConventions | |||
public const string AttributeAWSBedrockDataSourceId = "aws.bedrock.data_source.id"; | |||
public const string AttributeAWSBedrockGuardrailId = "aws.bedrock.guardrail.id"; | |||
public const string AttributeAWSBedrockKnowledgeBaseId = "aws.bedrock.knowledge_base.id"; | |||
public const string AttributeAWSeBedrock = "aws_bedrock"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo? Should be AttributeAWSBedrock
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used anywhere? (I don't have the full code base in front me)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving and merging based on @ppittle review.
Fixes #2108
Changes
This pull request addresses issue #2108 where AWS SDK request info were not being applied as expected. The logic for adding these info has been moved to the
AWSTracingPipelineHandler
which is executed early in the AWS SDK pipeline in order to manipulate outgoing requests objects before they are serialized.I didn't add additional tests here since we will need to examine the request at a specific part of the AWS request pipeline to validate these changes, but I ran the same code that was provided in the issue and the
traceparent
was sent and received properlyMerge requirement checklist
CHANGELOG.md
files updated for non-trivial changes